﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lswweb.Model;

namespace Lswweb.IDAL
{
    public interface IProductStorage
    {
        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Insert(ProductStorageInfo model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(ProductStorageInfo model);

        bool UpdateIsTop(int productId, bool isTop);
        bool UpdateIsHot(int productId, bool isHot);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(int Id);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        ProductStorageInfo GetProductStorage(int Id);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        IList<ProductStorageInfo> GetProductStorages(string searchKey, string productName, string brandName ,bool? isTop,bool? isHot, string ver, int pageIndex, int pageSize, out int totalRecord);
    }
}
